<?php

namespace SisesporteAdmin\Controller;

use Zend\View\Model\ViewModel;

class TurmaAnoController extends CrudController {

    public function __construct() {
        $this->entity = "Sisesporte\Entity\Modalidade";
        $this->controller = "turma-ano";
        //$this->service = "Sisesporte\Service\VagasModalidadeService";
        $this->route = "sisesporte-admin";
    }

    public function indexAction() {

        $service = $this->getServiceLocator()->get("Sisesporte\Service\TurmaAnoService");
        $data = $service->getVagasModalidade();
        //print_r($data[0]) ;
        /*
        echo '<pre>';
        var_dump($data);
        echo '</pre>';
        exit;
        */

        return new ViewModel(array('data' => $data));
    }


}
